<?php
	class Camera {

			//Attributs
			var $id;
			var $libelle;
			var $url;
			var $url_externe;
			var $login;
			var $password;
			var $enabled;
			var $appletJava;
			var $customCode;
			var $code;
			
			function Camera(){}
		
			function toString(){
				$result = "";
				$result .= $this->getLibelle()." ";
				$result = substr($result, 0, (strlen($result)-1));
				if($result == "") $result = "Camera ".$this->getId();
				return stripslashes($result);
			}
			
			function getId(){
				if(!isset($this->id)) return "null";
				$_id = $this->id;
				return stripslashes($_id);
			}
			
			function setId($_id){
				if($_id == "") $_id = null;
				$this->id = $_id;
			}
			

			function getLibelle(){
				if(!isset($this->libelle)) return "null";
				$_libelle = $this->libelle;
				return stripslashes($_libelle);
			}
			
			function setLibelle($_libelle){
				if($_libelle == "") $_libelle = null;
				$this->libelle = $_libelle;
			}
			

			function getUrl(){
				if(!isset($this->url)) return "null";
				$_url = $this->url;
				return stripslashes($_url);
			}
			
			function setUrl($_url){
				if($_url == "") $_url = null;
				$this->url = $_url;
			}
			

			function getUrl_externe(){
				if(!isset($this->url_externe)) return "null";
				$_url_externe = $this->url_externe;
				return stripslashes($_url_externe);
			}
			
			function setUrl_externe($_url_externe){
				if($_url_externe == "") $_url_externe = null;
				$this->url_externe = $_url_externe;
			}
			

			function getLogin(){
				if(!isset($this->login)) return "null";
				$_login = $this->login;
				return stripslashes($_login);
			}
			
			function setLogin($_login){
				if($_login == "") $_login = null;
				$this->login = $_login;
			}
			

			function getPassword(){
				if(!isset($this->password)) return "null";
				$_password = $this->password;
				return stripslashes($_password);
			}
			
			function setPassword($_password){
				if($_password == "") $_password = null;
				$this->password = $_password;
			}
			

			function getEnabled(){
				if(!isset($this->enabled)) return "null";
				$_enabled = $this->enabled;
				return stripslashes($_enabled);
			}
			
			function setEnabled($_enabled){
				if($_enabled == "") $_enabled = null;
				$this->enabled = $_enabled;
			}
			

			function getAppletJava(){
				if(!isset($this->appletJava)) return "null";
				$_appletJava = $this->appletJava;
				return stripslashes($_appletJava);
			}
			
			function setAppletJava($_appletJava){
				if($_appletJava == "") $_appletJava = null;
				$this->appletJava = $_appletJava;
			}
			

			function getCustomCode(){
				if(!isset($this->customCode)) return "null";
				$_customCode = $this->customCode;
				return stripslashes($_customCode);
			}
			
			function setCustomCode($_customCode){
				if($_customCode == "") $_customCode = null;
				$this->customCode = $_customCode;
			}
			

			function getCode(){
				if(!isset($this->code)) return "null";
				$_code = $this->code;
				return stripslashes($_code);
			}
			
			function setCode($_code){
				if($_code == "") $_code = null;
				$this->code = $_code;
			}
			

	}
?>